package com.superm.service;

import com.superm.entity.PurchasePoJo;

import java.util.List;
import java.util.Map;

/**
 * 采购申请单添加
 */
public interface PurchaseService {


    /**
     * 采购申请单添加
     * @return
     */
    public Map<String,Object> addPurchase(PurchasePoJo purchasePoJo, List<String> purcheaseDetails);


    /**
     * 模糊查询采购申请单
     * @param purchasePoJo
     * @return
     */
    public Map<String,Object> likePurshace(PurchasePoJo purchasePoJo,Integer pageNo,Integer pageSize);


    /**
     * 采购单改为经理已审批
     * @param purCode
     * @return
     */
    Map<String,Object> purchaseState1(String purCode);

    /**
     * 采购单改为财务已打款审批
     * @param purCode
     * @return
     */
    Map<String,Object> purchaseState2(String purCode);

    /**
     * 采购单改为采购员已采购
     * @param purCode
     * @return
     */
    Map<String,Object>  purchaseState3(String purCode);


    /**
     * 采购单状态4
     * @param purCode
     * @return
     */
    Map<String,Object>  purchaseState4(String purCode);


    /**
     * 采购单改为被驳回
     * @param purCode
     * @param role
     * @return
     */
    Map<String,Object> purchaseState5(String purCode,String role);


    /**
     * 采购单商品入库
     * @param purCode
     * @param remarkes
     * @return
     */
    Map<String,Object> goodsWraehousing(String purCode,String remarkes);


    /**
     * 采购退货单出库
     * @param purCode
     * @param remarkes
     * @return
     */
    Map<String,Object> purchaseOutBound(String purCode,String remarkes);

}
